package vote.domain;


import vote.domain.entity.User;
import vote.util.SmartRequestUtil;

public final class AdminRequestUtil {


    public static User getRequestUser() {
        return (User) SmartRequestUtil.getRequestUser();
    }

    public static Long getRequestUserId() {
        User requestUser = getRequestUser();
        return null == requestUser ? null : requestUser.getUserId();
    }


}
